package com.zyh.testhomework;

import java.util.Scanner;

public class Test4 {
    public static void main(String[] args) {
        System.out.println("请输入三个小数");
        Scanner sc = new Scanner(System.in);
        double num1 = sc.nextDouble();
        double num2 = sc.nextDouble();
        double num3 = sc.nextDouble();
        if (num1 < num2) {
            //比较num1和num2
            if (num1 < num3) {
                //比较num1和num3
                System.out.println("min:" + num1);
            } else {
                System.out.println("min:" + num3);
            }
        } else {
            if (num2 < num3) {
                System.out.println("min:" + num2);
            } else {
                System.out.println("min:" + num3);
            }
        }
    }
}
